package com.zj.fx.model.month;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.date.DateUtil;
import lombok.Data;

import java.util.Date;

@Data
public class MonthRejectDtl implements Serializable {
    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "主键id")
    private String id;

    @ApiModelProperty(value = "填报任务id")
    private String fkTaskId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "驳回时间")
    private Date rejectDate;

    @ApiModelProperty(value = "驳回原因")
    private String rejectReason;


    public MonthRejectDtl(String id, String fkTaskId, Date rejectDate, String rejectReason) {

        this.id = id;

        this.fkTaskId = fkTaskId;

        this.rejectDate = rejectDate;

        this.rejectReason = rejectReason;

    }

    public MonthRejectDtl() {
        super();
    }

    public String dateToStringConvert(Date date) {
        if (date != null) {
            return DateUtil.format(date, "yyyy-MM-dd HH:mm:ss");
        }
        return "";
    }


}